package com.yonyougov.devops.cruxcisupport.button.dto;

import com.yonyougov.devops.fwc.api.dto.BaseRequestDto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.math.BigInteger;

@Setter
@Getter
@ToString
@ApiModel(value = "按钮新增")
public class AddButtonRequestDto extends BaseRequestDto {

    /**
     * 按钮码
     */
    @NotEmpty
    @ApiModelProperty(required = true, value = "按钮码")
    private String code;

    /***
     * 按钮名称
     */
    @NotEmpty
    @ApiModelProperty(required = true, value = "按钮名称")
    private String buttonName;

    /***
     * 菜单id
     */
    @NotNull
    @ApiModelProperty(required = true, value = "菜单id")
    private BigInteger menuId;
}
